package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.RkdProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface RkdProductService extends BaseService<RkdProductBean> {

	RkdProductBean getRkdProductBeanById(String id) throws Exception;
	
	void removeRkdProductBeanById(String id) throws Exception;
	
	void removeRkdProductBeanByIds(String ids) throws Exception;
	
	RkdProductBean saveRkdProductBean(RkdProductBean crm) throws Exception;
	
	RkdProductBean updateRkdProductBean(RkdProductBean crm) throws Exception;
	
	Page<RkdProductBean>  findRkdProductBeanByCond(RkdProductBean bean,
			Page<RkdProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveRkdProductBeanExt(String sql) throws Exception;

	String findRkdProductBeanExtCreate(String tableName) throws Exception;

	String findRkdProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findRkdProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasRkdProductBeanExtData(String tableName, String id)
			throws Exception;
}